Version

Swap<T>(IList<T>,Int32,Int32) Method

Swaps values in a list at specified indexes.
Syntax
public static void Swap<T>( 
   IList<T> arr,
   int x,
   int y
)

Parameters

arr
The list to modify
x
Index location 1
y
Index location 2

Type Parameters

T
Type of elements in the list.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also